﻿<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">
  <description>Deletes a file first then creates it</description>

  <object id="MacroToProcess" type="Macro" >
	<constructor-arg name="templateId" value="1C420832-0A41-4f65-87C6-1B62E84DF524"/>
	<constructor-arg name="actions">
      <list element-type="IAction">
        
        <!-- Simple Action Test -->
        <object id="SimpleAction" type="Collaboris.Saf.Tests.Support.Actions.ActionWithSomeFailingsOnEntity, Collaboris.Saf.Tests">
          <property name="EntityList" ref="LotsOfTestEntities"/>

          <!-- Macro stops immediately if an error is raised in "Do" -->
          <property name="StopOnDoException" value="false"/>

          <!-- Macro stops immediately if an error is raised in "Undo" -->
          <property name="StopOnUndoException" value="true"/>

          <!-- The "Do" Method for the action will be skipped -->
          <property name="DisableDo" value="false"/>

          <!-- The "Undo" Method for the action will be skipped -->
          <property name="DisableUndo" value="false"/>
          
        </object>
       </list>
    </constructor-arg>

  </object>

  <object id="LotsOfTestEntities" type="Entities">
    <constructor-arg>
      <list>
        <object type="Collaboris.Saf.Tests.Support.Entities.Person">
          <property name="Forename" value="Mark"/>
          <property name="Surname" value="Jones"/>
        </object>
        <object type="Collaboris.Saf.Tests.Support.Entities.Person">
          <property name="Forename" value="Hugo"/>
          <property name="Surname" value="Esperanca"/>
        </object>
        <object type="Collaboris.Saf.Tests.Support.Entities.Person">
          <property name="Forename" value="Helen"/>
          <property name="Surname" value="Jones"/>
        </object>
        <object type="Collaboris.Saf.Tests.Support.Entities.Person">
          <property name="Forename" value="Sarah"/>
          <property name="Surname" value="Esperanca"/>
        </object>
        <object type="Collaboris.Saf.Tests.Support.Entities.Person">
          <property name="Forename" value="Katie"/>
          <property name="Surname" value="Jones"/>
        </object>
        <object type="Collaboris.Saf.Tests.Support.Entities.Person">
          <property name="Forename" value="Luke"/>
          <property name="Surname" value="Esperanca"/>
        </object>        
      </list>
    </constructor-arg>
  </object>
  
</objects>

